from django.conf.urls import patterns, include, url

from django.contrib import admin
from zdjx_hjhy import views,settings
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    url(r'^$', 'zdjx_hjhy.views.home', name='home'),
    url(r'^console$', 'zdjx_hjhy.views.console', name='home'),
    # url(r'^blog/', include('blog.urls')),
    
    url(r'^media/(?P<path>.*)$','django.views.static.serve',{'document_root':settings.MEDIA_ROOT}), 

    url(r'^admin/', include(admin.site.urls)),
    url(r'^main/', include('main.urls')),
    url(r'^index$', 'zdjx_hjhy.views.index', name='index'),
    url(r'^login$', 'zdjx_hjhy.views.login', name='login-view'),
    url(r'^logout$', 'zdjx_hjhy.views.logout', name='login-view'),
    #ueditor urls
    url(r'^ueditor/', include('DjangoUeditor.urls')),
)
